package com.yhb.channel.utils;

import com.yhb.channel.model.IBankCard;
import org.jetbrains.annotations.NotNull;

/**
 * 检查是否是银联卡
 */
public class UnionCardVerifier implements CardSupportiveVerifier {
    @NotNull
    public static UnionCardVerifier getInstance() {
        return new UnionCardVerifier();
    }

    @Override
    public boolean support(@NotNull IBankCard card) {
        return card.getNumber().startsWith("62");
    }
}
